package models;

import play.db.jpa.Model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 * Created by IntelliJ IDEA.
 * User: Bergur
 * Date: 23.2.2012
 * Time: 21:25
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class Room extends Model {
   
    public String roomNumber;
    public String price;
    public int persons;
    public int babies;
    public boolean isSuite;
    public String description;
    
    @ManyToOne
    public Hotel hotel;
    
    public Room(Hotel hotel, String roomNumber, String price, int persons, int babies, boolean isSuite, String description){
        this.hotel = hotel;
        this.roomNumber = roomNumber;
        this.price = price;
        this.persons = persons;
        this.babies = babies;
        this.isSuite = isSuite;
        this.description = description;
    }
}
